﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
<%var item = ViewData["data"] as RecruitSheetModel; %>大学生兼职网 - <%:item.Caption %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
    <link href="/content/css/default.css" rel="stylesheet" type="text/css" />
    <link href="/content/css/main.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="/content/css/slider.css" type="text/css" media="screen" />
    <link rel="Stylesheet" type="text/css" href="/Content/css/popupbox.css" />
    <link rel="Stylesheet" type="text/css" href="/Content/Css/common.css" />
    <link href="/content/css/jobs.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript" src="/Scripts/library.js" charset="GB2312"></script>
    <script type="text/javascript" src="/Scripts/plug.js" charset="GB2312"></script>
    <script type="text/javascript" src="/scripts/slider.js"></script>
    <script type="text/javascript">
        var pop = new plug.PopFrame();
        function openframeofnoemail() {
            pop.OpenFrame('noemail', 'btncolsenoemailbox');
        }
        function OpenFeedbackBox() {
            pop.OpenFrame('feedback', 'btnclosefeedbackbox');
        }
        function postfeedback() {
            var text = $('textarea[name="txtfeedback"]').text();
            if (text.replace('\r', '').replace('\n', '') == '' || text.replace(/\s*/ig,'') == '') {
                $('#btnclosefeedbackbox').trigger('click');
                return;
            }
            $.ajax({
                url: '/home/feedback',
                type: 'post',
                data: {
                    source: $('input[name="url"]').val(),
                    message: $('textarea[name="txtfeedback"]').text()
                },
                success: function (result) {
                    $('textarea[name="txtfeedback"]').text('');
                    $('#btnclosefeedbackbox').trigger('click');
                    pop.OpenFrame('serverback', 'btncloseserverback');
                }
            });
            return false;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%var item = ViewData["data"] as RecruitSheetModel; %>
    <div id="noemail" class="popbox-box" style="width: 400px; height: auto">
        <div class="popbox-title">
            <div class="popbox-right">
                <a href="javascript:;" id="btncolsenoemailbox">
                    <img alt="关闭" src="/Content/Images/closelabel.gif" /></a></div>
        </div>
        <div class="popbox-content">
            <%--if (HttpContext.Current.User.Identity.IsAuthenticated)
              {  --%>
            <div>
                由于该企业/商家未设置简历接收邮箱，请通过以下方式联系：</div>
            <div>
                <span class="popbox-itemtitle">联系人：</span>
                <%:item.Contact%></div>
            <div>
                <span class="popbox-itemtitle">联系电话：</span>
                <%if (item.ContactPhone.Trim().StartsWith("/"))
                  {%>
                  <img alt="phone" src="<%:item.ContactPhone %>" />
                <%}
                  else
                  {%>
                   <%:item.ContactPhone %>
                <%}%></div>
            <hr />
            <span style="color: Red">提醒：</span>请尽量直接与招聘企业/商家联系，若遇中介请谨慎。
            <%-- }
              else
              { %>
            <div>
                请在<a href="/account/login?ReturnUrl=<%=Server.UrlEncode(Request.RawUrl) %>" style="color: #A10000">登录</a>后查看联系方式或投递简历！</div>
            <div>
                如果您还没有<a href="javascript:" style="color: #A10000">重庆大学生兼职网</a>帐号，那就赶快来<a href="/account/cregister?ReturnUrl=<%=Server.UrlEncode(Request.RawUrl) %>"
                    style="color: #A10000">免费注册</a>吧！</div>
            <%} --%>
        </div>
    </div>
    <div id="serverback" class="popbox-box" style="width:400px;height:150px;">
        <div class="popbox-title">
            <div class="popbox-right">
                <a href="javascript:;" id="btncloseserverback">
                    <img alt="关闭" src="/Content/Images/closelabel.gif" /></a></div>
        </div>
        <div class="popbox-content" style="width:400px;height:120px;">
            <h2>尊敬的用户，您好</h2>
            <div style="text-indent:20px; font-size:12px;">
                您的举报信息已经被我们收录，我们将尽快处理。
            </div>
            <div style="text-indent:20px;font-size:12px;">
                谢谢您的对我们的支持,您的举报将可能帮助到更多的求职者。
            </div>
        </div>
    </div>
    <div id="feedback" class="popbox-box" style="width:600px; height:auto">
        <div class="popbox-title">
            <div class="popbox-right">
                <a href="javascript:;" id="btnclosefeedbackbox">
                    <img alt="关闭" src="/Content/Images/closelabel.gif" /></a></div>
        </div>
        <div class="popbox-content">
            <div class="box-height25 font-bold" style="border-bottom:solid 1px #ccc">
                <div class="popbox-left font-size15 font-darkred" style="width:70px;border-bottom:solid 3px #900808">违规举报</div>
            </div>
            <div class="line-box">
                <div class="line-box-left font-darkred">举报内容：</div>
                <div class="line-box-right"><%:item.Caption %>
                    <input type="hidden" name="url" value="<%:Request.RawUrl %>" />
                </div>
            </div>
            <div class="line-box" style="height:165px;">
                <div class="line-box-left font-darkred">违规描述：</div>
                <div class="line-box-right" style="height:150px;">
                    <textarea name="txtfeedback" style="width:96%;height:140px;resize: none;" ></textarea>
                </div> 
            </div>
            <div class="line-box">
                <div class="line-box-center50">
                    <input type="image" src="/Content/Images/usercenter-done.png" onclick="postfeedback();" />
                    <input type="image" src="/Content/Images/usercenter-return.png"  onclick="return false;" />
                </div>
            </div>
        </div>
    </div>
    <div class="content">
        <div class="contentline">
            <div class="main-nav">
                <a href="/">重庆大学生兼职网</a> > <a href="/home/jobdetail_<%:item.Id %>">
                    <%:item.Caption %></a></div>
        </div>
        <div class="jobs-notice">
            提示：没有在信息中写明收费，但实际收取各种费用的都是骗子信息，请立即<a href="javascript:;" onclick="OpenFeedbackBox()">举报</a>。
        </div>
        <div class="content-page">
            <div class="page-left">
                <div class="jobs">
                    <div class="jobs-title">
                        <h2>
                            <%if (!item.IsVerify)
                              { %><font style="color:Red;">【兼职未通过审核】</font><%} %>
                              <%if(item.RecruitSubject == RecruitSheetSubject.Recommand)
                                { %>
                                [<span style='color:#fea559'>荐</span>]
                                <%} %>
                              <%=item.Caption %>
                              <%if (item.Positions.Any(c => c.Priority == PositionPriority.High))
                                { %>
                              [<span style='color:#bf362b'>急</span>]
                              <%} %>
                              &nbsp;<a target="_blank" href="/home/recruitmentdiscuss_<%:item.Id %>" style="font-size:12px; text-decoration:none; font-weight:normal; color:#900808;">网友对此兼职有<%:ViewData["discussTime"]%>次评论</a></h2>
                    </div>
                    <div class="jobs-content">
                        <div style="width:450px;float:left;">
                            <div style="height:50px; line-height:50px; font-size:18px;">
                                发布时间：<%:item.PublishDate.ToString("yyyy年MM月dd日 HH:mm") %></div>
                            <div style="height:50px; line-height:50px; font-size:18px;">
                                更新时间：<%:item.Refresh.ToString("yyyy年MM月dd日 HH:mm") %></div>
                            <div style="height:50px; line-height:50px; font-size:18px;">
                                兼职地点：<a title="<%:item.WorkArea.Mapping() %> - <%:item.WorkAddress %>"><%:item.WorkArea.Mapping() %>
                                -
                                <%:item.WorkAddress.PieceOfString(0,13) %></a></div>
                            <div style="height:50px; line-height:50px; font-size:18px;">
                                联系方式：<%:item.Contact%>
                                |
                                 <%
                                     if (item.ContactPhone.Trim().StartsWith("/"))
                                  {%>
                                  <img alt="phone" src="<%=item.ContactPhone %>" />
                                <%}
                                  else
                                  {%>
                                   <%=item.ContactPhone %>
                                <%}%>
                            </div>
                            <%if(HttpContext.Current.User.Identity.IsAuthenticated && !String.IsNullOrEmpty(item.QQ))
                              { %>
                               <div style="height:50px; line-height:50px; font-size:18px;">
                                    QQ&nbsp;&nbsp;询问： QQ:<%:item.QQ %> | 
                                    立刻询问 <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<%:item.QQ %>&site=qq&menu=yes">
                                    <img border="0" src="http://wpa.qq.com/pa?p=2:<%:item.QQ %>:46" alt="点击这里给我发消息" title="点击这里给我发消息"/></a>
                                </div>
                        
                            <%} %>
                            <div style="height:50px; line-height:50px; font-size:18px;">
                            兼职发布：<a title="<%=item.AgentInfo.CorporationInfo.CompanyName %>" target="_blank" href="/home/morejob_ag=<%:EncodeByBase64.Encode(item.Recruiter) %>"><%=item.AgentInfo.CorporationInfo.CompanyName.PieceOfString(0,8) %></a>
                           <%-- <a href="/home/PositionList/ag=<%:AesAlgorithm.Encrypt(item.Recruiter) %>">查看他发布的其他兼职信息</a>--%>
                            <%if (!HttpContext.Current.User.Identity.IsAuthenticated || new UserService(HttpContext.Current.User.Identity.Name).GetUser().Role != MemberStatus.Firm)
                              { %>
                            <a target="_blank" href="/home/collect_target=<%:EncodeByBase64.Encode(item.Recruiter) %>-at=1">
                                关注他发的兼职</a>
                            <%} %>
                        </div>
                        </div>
                        <div id="mapcontainer" style="padding-top:10px; float:right;">
                            <div style="width:300px;height:250px;" id="map">
                            </div>
                        </div>
                        <div class="line-gray">
                        </div>
                        <div class="jobs-supplement-title">
                            兼职职位：</div>
                        <div class="line-gray">
                        </div>
                        <div class="job-items">
                            <%for (int i = 0, len = item.Positions.Count; i < len; i++)
                              { %>
                            <div class="job-item">
                                <div>
                                    <div class="job-item-left">
                                        <div class="job-item-title">
                                            <%:item.Positions[i].PositionName%></div>
                                        <div>
                                            职位类型：<a><%:item.Positions[i].PositionType.Mapping()%></a></div>
                                        <div>
                                            招聘人数：<%:item.Positions[i].Vacancy > 0 ? item.Positions[i].Vacancy.ToString() : "若干"%>人&nbsp;&nbsp;薪酬范围：
                                            <%if (item.Positions[i].MinSalary <= 0 && (item.Positions[i].MaxSalary <= 0 || item.Positions[i].MaxSalary <= item.Positions[i].MinSalary))
                                              {%>
                                            面议
                                            <%}
                                              else
                                              {
                                                  if (item.Positions[i].MinSalary > 0)
                                                  { %><%:item.Positions[i].MinSalary%>
                                            <%    }%>
                                            <%    if (item.Positions[i].MaxSalary > 0 && item.Positions[i].MaxSalary > item.Positions[i].MinSalary)
                                                  {%>
                                            -
                                            <%:item.Positions[i].MaxSalary%>元
                                            <%    }%>
                                            /<%:item.Positions[i].Period.Mapping()%>
                                            <%}%>
                                        </div>
                                        <div>
                                            性别要求：<%:item.Positions[i].Gender.Mapping()%>&nbsp;&nbsp; 学历要求：<%:item.Positions[i].Degree.Mapping()%>&nbsp;&nbsp;
                                            经验要求：<%:item.Positions[i].Experienced ? "有经验从优" : "无要求"%>
                                        </div>
                                    </div>
                                    <%if (!HttpContext.Current.User.Identity.IsAuthenticated || new UserService(HttpContext.Current.User.Identity.Name).GetUser().Role != MemberStatus.Firm)
                                      { %>
                                    <div class="right" style="width: 100px">
                                        <div>
                                            <a target="_blank" href="/home/collect_target=<%:item.Positions[i].Id %>-at=2">收藏该职位</a>&nbsp;</div>
                                        <div>
                                            <%--if (item.EnableEmail)
                                              { %>
                                            <a target="_blank" href="/home/requestjob?p=<%:item.Positions[i].Id %>&r=<%:item.Positions[i].RecruitId %>">
                                                <img src="/content/images/buttom-apply.png" /></a>
                                            <%}
                                              else
                                              {--%>
                                            <a href="javascript:;" onclick="openframeofnoemail()">
                                                <img alt="投递简历" src="/content/images/buttom-apply.png" /></a>
                                            <%-- } --%>
                                        </div>
                                    </div>
                                    <%} %>
                                </div>
                                <%if (item.Positions[i].PositionDescript != "")
                                  { %>
                                <div class="job-item-desc">
                                    <div>
                                        职位描述：</div>
                                    <div style="padding-left:10px; padding-right:10px">
                                        <%=item.Positions[i].PositionDescript%></div>
                                </div>
                                <%} %>
                            </div>
                            <%if (i != len - 1)
                              { %>
                            <div class="job-item-line">
                            </div>
                            <%}
                              } %>
                        </div>
                        <div class="line-gray">
                        </div>
                        <div style="overflow: hidden;">
                            <div class="left">
                                <div class="jobs-supplement-title">
                                    公司信息：</div>
                            </div>
                            <%--<div class="right">
                                <a href="#">加入收藏</a>|<a href="#">添加关注</a></div>--%>
                        </div>
                        <div class="line-gray">
                        </div>
                        <div class="jobs-supplement">
                            公司名称：<%:item.DepositCompany.CompanyName %><br />
                            公司行业：<%:item.DepositCompany.CompanyBusiness.Mapping() %><br />
                            公司类型：<%:item.DepositCompany.CompanyType.Mapping() %><br />
                            公司规模：<%:item.DepositCompany.CompanyDimensions.Mapping() %><br />
                            公司简介：<br />
                            <div style="text-align: justify; padding-left: 5px; padding-right: 25px;">
                                <%=item.DepositCompany.CompanyDetail %></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="page-right">
                <div class="rightad">
                    <a href="/content/html/default.html" target="_blank">
                        <img alt="曦雅舞蹈俱乐部" src="/Content/Images/sidead1.jpg" /></a>
                </div>
                <div class="rightad">
                    <a href="#">文字广告</a>
                </div>
                <div class="rightad">
                    <div class="rightad-title">
                        <a href="http://www.csaep.org" title="中华科教出版社-全球最大中文开源电子论文出版社" target="_blank">中华科教出版社</a></div>
                    <div>
                        硕士论文，毕业论文，学术期刊</div>
                    <a href="http://www.csaep.org" target="_blank">www.csaep.org</a>
                    <div class="hspace10">
                    </div>
                </div>
                <div class="rightad">
                    <div class="rightad-title">
                        <a href="http://www.cqyupo.com" target="_blank">重庆玉珀保温建材</a></div>
                    <div>
                        保温材料，外墙保温系统</div>
                    <a href="http://www.cqyupo.com" target="_blank">www.bayu.cc</a>
                    <div class="hspace10">
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=1.3"></script>
    <script type="text/javascript">
        var bmap = new plug.BMap();
        var prop;
        var cfg = '<%=item.MapSetting %>';
        if (cfg && cfg.length != 0) {
            prop = eval('(' + cfg + ')');
        } else {
            prop = {};
            prop.search = true;
            prop.address = '<%=item.WorkArea.Mapping() %>政府';
            prop.location = '重庆市';
            prop.error = function () {
                $('#mapcontainer').hide();
            };
        }
        prop.zoom = 13;
        bmap.OpenMap('map', prop);
    </script>
</asp:Content>
